﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Forms;

namespace MulticastTV
{
    /// <summary>
    /// Recording schedule DataTable
    /// </summary>
    static class RecTableContainer
    {
         private static  DataSet dataset = new DataSet("ContactData");
         private static  DataTable t = new DataTable("Recordings");
                
         static RecTableContainer()
         {
                t.Columns.Add("Start", typeof(DateTime));
                t.Columns.Add("Stop", typeof(DateTime));
                t.Columns.Add("Channel", typeof(String));
                t.Columns.Add("Duration (min)", typeof(int));
                t.Columns.Add("Repeat", typeof(String));
                t.Columns.Add("Ip", typeof(String));
                t.Columns.Add("Status", typeof(String));
                t.Columns.Add("Name", typeof(String));
                t.Columns.Add("object", typeof(Rec));
                t.Columns.Add("action",typeof(int));
                dataset.Tables.Add(t);
         }

         public static DataSet dt {
             get
             {
                 return dataset;
             }
             set
             {
                 dataset= value;
             }
        }
    }
}
